﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KL.Store.Core.Domain
{
    public class Voucher
    {
        public Voucher()
        {
            Selected = false;
        }

        public virtual int UserId { get; set; }
        public virtual long VoucherId { get; set; }
        public virtual short TypeId { get; set; }
        public virtual string TypeName { get; set; }
        public virtual Boolean Enabled { get; set; }
        public virtual Boolean Used { get; set; }
        public virtual decimal Payment { get; set; }
        public virtual decimal PriceLimit { get; set; }
        public virtual DateTime ValidDate { get; set; }
        public virtual string ValidDateStr { get; set; }
        public virtual string CreateDate { get; set; }
        public virtual int CreateUser { get; set; }
        public virtual string UpdateDate { get; set; }
        public virtual int UpdateUser { get; set; }
        public virtual int? OrderId { get; set; }
        public virtual Boolean Approved { get; set; }
        public virtual string Comment { get; set; }
        public virtual Boolean Denied { get; set; }
        public virtual string Info { get; set; }
        public virtual int? PosId { get; set; }
        public virtual short InstallmentNo { get; set; }
        public virtual Boolean PaymentNotification { get; set; }
        public virtual string NotificationDate { get; set; }
        public virtual int BankId { get; set; }

        public virtual bool Selected { get; set; }
    }

    public class OrderCompletedVoucher
    {
        public OrderCompletedVoucher()
        {

        }
        public short InstallmentNo { get; set; }
        public decimal PaymentAmount { get; set; }
        public DateTime CreateDate { get; set; }
        public long VoucherId { get; set; }
        public int OrderId { get; set; }
        public int UserId { get; set; }

    }
}